package com.polukeuro.app.client;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.polukeuro.app.client.manager.DataManager;
import com.polukeuro.app.client.manager.EventManager;
import com.polukeuro.app.client.manager.WidgetManager;

public final class PolukEuroFactory {
	
	DataManager provider = DataManager.getInstance();
	
	EventManager eventManager = EventManager.getInstance();
	
	WidgetManager widgetManager = WidgetManager.getInstance();
	
	public PolukEuroFactory() {
		//
	}
	
	public final void createWidget(Widget w, RootPanel panel) {
		eventManager.subscribe(w);
		widgetManager.subscribe(w);
		panel.add(w);
	}

}
